using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using SalesPages.DomainModel;

namespace SalesPages.EntityFrameworkRepository.Mapping
{
    public class DataCounterMap : EntityTypeConfiguration<DataCounter>
    {
        public DataCounterMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            // Table & Column Mappings
            this.ToTable("DataCounter");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.VisitDate).HasColumnName("VisitDate");
            this.Property(t => t.Number).HasColumnName("Number");
        }
    }
}
